<%-- 
    Document   : header
    Created on : Nov 27, 2011, 4:24:26 PM
    Author     : Ngoc Linh
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<div id="header">
    <a name="top"></a>
    <div id="top_header">
        <div id="logo">
            <a href="/DauGia/index.do">
                <img src="/DauGia/images/logo.png" alt="P2TBID" /></a>
        </div>
        <!--END LOGO-->
        <div id="header_content_right">
            <div id="top_header_content_right">
                <p class="btn_header" id="connect">
                    <a href="#" title="Kết nối"><img src="/DauGia/images/btn_connect.png" alt="" /></a>
                <p class="btn_header" id="logincontrol">
                    <c:if test="${empty sessionScope.taiKhoan}">
                        <a href="/DauGia/signup.do" title="đăng ký">
                            <img src="/DauGia/images/btn_reg.png" alt="" />
                        </a>
                        <a href="/DauGia/login.do" title="đăng nhập">
                            <img src="/DauGia/images/btn_login.png" alt="" />
                        </a>
                        <input type="hidden" value="0" id="logined"/>
                    </c:if>
                    <c:if test="${not empty sessionScope.taiKhoan}">
                        <span id="welcome">Chào <a href="/DauGia/member/home.do">${sessionScope.taiKhoan.tenTaiKhoan}</a></span>
                        <a href="/DauGia/logout.do" title="đăng xuất">
                            <img src="/DauGia/images/btn_logout.png" alt="" />
                        </a>
                        <input type="hidden" value="1" id="logined"/>
                    </c:if>                    
                </p>                        
            </div>
            <form method="post" action="/DauGia/quicksearch.do">
                <p id="bottom_header_content_right">                    
                    <input type="text" value="tìm kiếm nhanh ..." name="key" id="key_search" onclick="setNull(this)" onblur="recover(this)"/>
                    <input type="image" name="btn_quickSearch" src="/DauGia/images/btn_search.png" id="btnSearch" onclick="return checkSearch()" />
                </p>
            </form>
        </div>
        <!--END header_content_right-->                
    </div>
    <div class="clearboth"></div>
    <div id="main_menu">
        <ul>
            <li><a href="/DauGia/index.do">Trang chủ</a> </li>
            <li><a href="/DauGia/index.do">NEW BID !</a> </li>
            <li><a href="/DauGia/member/myproduct.do">Cửa hàng của tôi</a> </li>
            <li><a href="#">Dịch vụ</a> </li>
            <li><a href="#">Hỏi đáp</a> </li>
            <li><a href="#">Giới thiệu</a> </li>
        </ul>
    </div>
    <!-- END main_menu-->
</div>
<!--END HEADER-->
